package org.spiderflow.permission.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Created by Nicky.Tang on 2020/5/6 11:46 PM
 *
 * @since 02.12.10
 */
@Data
@TableName(value = "sp_user_permisson")
public class SysUserPermisson {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户权限id")
    private Integer userPerId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "权限id")
    private Integer perId;

    private Integer perScope;

    @ApiModelProperty(value = "权限状态 1-生效 2-失效")
    private Integer dataStatus;

    private Integer createId;

    private String createName;

    private String createTime;

    private Integer updateId;

    private String updateName;

    private String updateTime;

    public static class Constant{
        public static class PerScope{
            public static final Integer self=1;
            public static final Integer all=2;
        }
    }

}
